package java0107.s;


import java.util.ArrayList;
import java.util.List;

public class Java01 {
    public static void main(String[] args) {

        List<String> list = new ArrayList<String>();

        list.add("巴托洛维奇");
        list.add("赫卡里姆");
        list.add("德莱文");

        for (String s:list) {
            System.out.println(s);
        }
        list.forEach(x->{
            System.out.println(x);
        });
        list.forEach(System.out::println);

    }




}
